package com.myqm.pojo.weixin;

import java.io.Serializable;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;

public class OrderDetail implements Serializable {
	private Integer id;

	@ApiModelProperty(value="订单id")
	@NotNull
	private Integer orderId;

	@ApiModelProperty(value="单价")
	@NotNull
	private Double unitPrice;

	@ApiModelProperty(value="数量")
	@NotNull
	private Double amount;

	@ApiModelProperty(value="单位名称")
	@NotNull
	private String unitName;
	
	@ApiModelProperty(value="内部商品分类")
	@NotNull
	private String internalType;

	@ApiModelProperty(value="总价")
	@NotNull
	private Double sum;

	@ApiModelProperty(value="状态（下单 采购 入库 出库 收货）")
	@NotNull
	@Min(0)
	private String state;

	@ApiModelProperty(value="内部商品id")
	@NotNull
	private Integer internaltradeId;

	@ApiModelProperty(value="原始名")
	private String tradeName;

	@ApiModelProperty(value="自费数量")
	private Double selfAmount;

	@ApiModelProperty(value="免费数量")
	private Double freeAmount;

	@ApiModelProperty(value="自费钱")
	private Double selfSum;

	@ApiModelProperty(value="免费金额")
	private Double freeSum;


    private static final long serialVersionUID = 1L;


	public Integer getId () {   
		return id;
	}
		
	public void setId (Integer id) {
		this.id= id ;
	}
    public Integer getOrderId () {   
    	 return orderId;
    }

    public void setOrderId (Integer orderId) {
    	 this.orderId= orderId;
    }


	public Double getUnitPrice () {   
		  return unitPrice;
	}
	
	public void setUnitPrice (Double unitPrice) {
		  this.unitPrice= unitPrice;
	}

	public Double getAmount () {   
		  return amount;
	}
	
	public void setAmount (Double amount) {
		  this.amount= amount;
	}
    public String getUnitName () {   
    	 return unitName;
    }

    public void setUnitName (String unitName) {
    	 this.unitName= unitName == null ? null : unitName.trim();
    }


	public Double getSum () {   
		  return sum;
	}
	
	public void setSum (Double sum) {
		  this.sum= sum;
	}
    public String getState () {   
    	 return state;
    }

    public void setState (String state) {
    	 this.state= state == null ? null : state.trim();
    }


	public Integer getInternaltradeId () {   
		  return internaltradeId;
	}
	
	public void setInternaltradeId (Integer internaltradeId) {
		  this.internaltradeId= internaltradeId ;
	}
    public String getTradeName () {   
    	 return tradeName;
    }

    public void setTradeName (String tradeName) {
    	 this.tradeName= tradeName == null ? null : tradeName.trim();
    }


	public Double getSelfAmount () {   
		  return selfAmount;
	}
	
	public void setSelfAmount (Double selfAmount) {
		  this.selfAmount= selfAmount;
	}

	public Double getFreeAmount () {   
		  return freeAmount;
	}
	
	public void setFreeAmount (Double freeAmount) {
		  this.freeAmount= freeAmount;
	}

	public Double getSelfSum () {   
		  return selfSum;
	}
	
	public void setSelfSum (Double selfSum) {
		  this.selfSum= selfSum;
	}

	public Double getFreeSum () {   
		  return freeSum;
	}
	
	public void setFreeSum (Double freeSum) {
		  this.freeSum= freeSum;
	}

	public String getInternalType() {
		return internalType;
	}

	public void setInternalType(String internalType) {
		this.internalType = internalType;
	}
	
	
}
